//
//  RecommendViewController.m
//  FM
//
//  Created by 王方伟 on 2018/1/3.
//  Copyright © 2018年 wfw. All rights reserved.
//

#import "RecommendViewController.h"
#import "UIImageView+WebCache.h"
#import "DiscoverService.h"
#import "FWAdPicView.h"

@interface RecommendViewController ()
@property (weak, nonatomic) FWAdPicView *picView;
@end

@implementation RecommendViewController

- (FWAdPicView *)picView{
    if (_picView == nil) {
        FWAdPicView *picView = [FWAdPicView picViewWithLoadImageBlock:^(UIImageView *imageView, NSURL *url) {
            [imageView sd_setImageWithURL:url];
        }];
        [self.view addSubview:picView];
        _picView = picView;
    }
    return _picView;
}

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor = [UIColor whiteColor];
    self.picView.frame = CGRectMake(0, 0, SHScreenW, 250);
}




@end
